<?php

/**
 * Foto form.
 *
 * @package    inmobiliaria
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class FotoForm extends BaseFotoForm
{
  public function configure()
  {

	$this->widgetSchema['imagen'] = new sfWidgetFormInputFile(array(
  	'label' => 'Imagen',
	));

	$this->validatorSchema['imagen'] = new sfValidatorFile(array(
	  'required'   => true,
	  'path'       => sfConfig::get('sf_upload_dir').'/fotos',
	  'mime_types' => 'web_images',
	));

	unset(
          $this['created_at'], $this['updated_at']
        );

        $this->widgetSchema['propiedad_id']=new sfWidgetFormInputHidden();

  }
}
